package com.jy.adscm.wechat.controller;


import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.support.SimpleCoreResponse;
import com.jy.adscm.wechat.bean.ShCustomerInfo;
import com.jy.adscm.wechat.bean.WechatUser;
import com.jy.adscm.wechat.service.ShCustomerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zyl
 * @since 2019-09-24
 */
@RestController
@RequestMapping("/adscm/wechat/shCustomerInfo")
public class ShCustomerInfoController {
    @Autowired
    ShCustomerInfoService  shCustomerInfoService;
    @RequestMapping("select")
    public SimpleCoreResponse select( String keyWords,  HttpServletRequest request)throws AdscmSystemException {
      List<ShCustomerInfo> shCustomerInfos  =  shCustomerInfoService.selectShCustomerInfo(keyWords);
        return  new SimpleCoreResponse("200","查询成功",shCustomerInfos);
    }
}

